package com.codelife.shejimoshi.danli;

/**
 * @ClassName Demo3
 * @Description TODO
 * @Date 2019/11/5 9:59
 * @Version 1.0
 **/
public class Demo3 {
    private Demo3(){};
    private static Demo3 demo3=new Demo3();
    public static synchronized Demo3 getDemo3(){
        if (demo3==null){
            return demo3=new Demo3();
        }
        return demo3;
    }
}
